﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;



using System.Drawing.Design;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Windows.Forms;
using System.Windows.Forms.Design;


namespace HuanGis
{
    [Serializable ]
    public class ContourLine
    {
        public ContourLine()
        {
            this._ContourLineColor = System.Drawing.Color.Black;
            this._ContourLineFillColor = System.Drawing.Color.White;
            this._ContourLineValue = 0.0;
            this._IsShowPolygon = true;
        }

        # region 字段

        private double _ContourLineValue;
        private System.Drawing.Color _ContourLineColor;
        private System.Drawing.Color _ContourLineFillColor;
        private bool _IsShowPolygon; //是否显示等值线所包围的区域

        # endregion


        # region 属性

        /// <summary>
        /// 等值线值
        /// </summary>
        [Category("基本信息"), NotifyParentProperty(true), Browsable(false), DisplayName("等值线值")]
        public double ContourLineValue
        {
            get { return this._ContourLineValue; }
            set { this._ContourLineValue = value; }
        }

        /// <summary>
        /// 等值线颜色
        /// </summary>
        [Category("基本信息"), NotifyParentProperty(true), DisplayName("等值线颜色")]
        public System.Drawing.Color ContourLineColor
        {
            get { return this._ContourLineColor; }
            set { this._ContourLineColor = value; }
        }

        /// <summary>
        /// 等值线内填充色
        /// </summary>
        [Category("基本信息"), NotifyParentProperty(true), DisplayName("等值线内填充色")]
        public System.Drawing.Color ContourLineFillColor
        {
            get { return this._ContourLineFillColor; }
            set { this._ContourLineFillColor = value; }
        }

        /// <summary>
        /// 是否显示等值线所包围的区域
        /// </summary>
        [Category("基本信息"), NotifyParentProperty(true), DisplayName("是否显示")]
        public bool IsShowPolygon
        {
            get { return this._IsShowPolygon; }
            set { this._IsShowPolygon = value; }
        }



        #endregion


    }

}
